/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Physician Assistant HIPAA</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S13422 (C-0-T13129-A13130-A13363-S13422-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getPhysicianAssistantHIPAA()
 * @model extendedMetaData="name='PhysicianAssistantHIPAA'"
 * @generated
 */
public enum PhysicianAssistantHIPAA implements Enumerator {
	/**
	 * The '<em><b>363A00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_363A00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_363A00000N(0, "_363A00000N", "363A00000N"),

	/**
	 * The '<em><b>363AM0700N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_363AM0700N_VALUE
	 * @generated
	 * @ordered
	 */
	_363AM0700N(1, "_363AM0700N", "363AM0700N"),

	/**
	 * The '<em><b>363AS0400N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_363AS0400N_VALUE
	 * @generated
	 * @ordered
	 */
	_363AS0400N(2, "_363AS0400N", "363AS0400N");

	/**
	 * The '<em><b>363A00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>363A00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_363A00000N
	 * @model literal="363A00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _363A00000N_VALUE = 0;

	/**
	 * The '<em><b>363AM0700N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>363AM0700N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_363AM0700N
	 * @model literal="363AM0700N"
	 * @generated
	 * @ordered
	 */
	public static final int _363AM0700N_VALUE = 1;

	/**
	 * The '<em><b>363AS0400N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>363AS0400N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_363AS0400N
	 * @model literal="363AS0400N"
	 * @generated
	 * @ordered
	 */
	public static final int _363AS0400N_VALUE = 2;

	/**
	 * An array of all the '<em><b>Physician Assistant HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final PhysicianAssistantHIPAA[] VALUES_ARRAY =
		new PhysicianAssistantHIPAA[] {
			_363A00000N,
			_363AM0700N,
			_363AS0400N,
		};

	/**
	 * A public read-only list of all the '<em><b>Physician Assistant HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<PhysicianAssistantHIPAA> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Physician Assistant HIPAA</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PhysicianAssistantHIPAA get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PhysicianAssistantHIPAA result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Physician Assistant HIPAA</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PhysicianAssistantHIPAA getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PhysicianAssistantHIPAA result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Physician Assistant HIPAA</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PhysicianAssistantHIPAA get(int value) {
		switch (value) {
			case _363A00000N_VALUE: return _363A00000N;
			case _363AM0700N_VALUE: return _363AM0700N;
			case _363AS0400N_VALUE: return _363AS0400N;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private PhysicianAssistantHIPAA(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //PhysicianAssistantHIPAA
